﻿<?xml version="1.0" encoding="utf-8"?>
<UserControl x:Class="SABnzbdNET.Views.AddTask" 
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             Loaded="UserControl_Loaded"
             mc:Ignorable="d" d:DesignHeight="270" d:DesignWidth="300">
	<Grid>
		<GroupBox Name="grpProcessing" Header="Processing" VerticalAlignment="Top" HorizontalAlignment="Stretch" Margin="0,0,0,0" Height="135">
			<Grid>
                <ComboBox Height="25" Margin="10,10,10,0" Name="drpCategories" VerticalAlignment="Top" SelectedIndex="0">
                    <ComboBox.ItemsSource>
                        <CompositeCollection>
                            <ComboBoxItem Tag="">Choose category</ComboBoxItem>
                            <CollectionContainer x:Name="cmbCategoriesCollecion" x:FieldModifier="private" />
                        </CompositeCollection>
                    </ComboBox.ItemsSource>
                </ComboBox>
				<ComboBox Height="25" Margin="10,45,10,0" Name="drpScript" VerticalAlignment="Top" SelectedIndex="0">
					<ComboBoxItem Tag="">Choose job-option</ComboBoxItem>
					<ComboBoxItem Tag="1">Repair</ComboBoxItem>
					<ComboBoxItem Tag="2">Unpack</ComboBoxItem>
					<ComboBoxItem Tag="3">Delete</ComboBoxItem>
				</ComboBox>
				<ComboBox Height="25" Margin="10,80,10,0" Name="drpPriority" VerticalAlignment="Top" SelectedIndex="0">
					<ComboBoxItem Tag="">Choose job priority</ComboBoxItem>
					<ComboBoxItem Tag="-1">Low</ComboBoxItem>
					<ComboBoxItem Tag="0">Normal</ComboBoxItem>
					<ComboBoxItem Tag="1">High</ComboBoxItem>
				</ComboBox>
			</Grid>
		</GroupBox>
		<GroupBox Name="grpUpload" Header="Upload nzb file" VerticalAlignment="Top" HorizontalAlignment="Stretch" Margin="0,135,0,0" Height="50">
			<Grid>
				<TextBox Height="25" Margin="0,0,95,0" Name="txtFilePath" VerticalAlignment="Top" HorizontalAlignment="Stretch" />
				<Button Name="btnUpload" Click="upload_Click" Height="23" Content="Browse" VerticalAlignment="Top" HorizontalAlignment="Right" Margin="0,0,0,0" Width="85" />
			</Grid>
		</GroupBox>
		<GroupBox Name="grpNewzbin" Header="Add by Newzbin ID" VerticalAlignment="Top" HorizontalAlignment="Stretch" Margin="0,185,0,0" Height="50">
			<Grid>
				<TextBox Height="25" Margin="0,0,0,0" Name="txtNewzbinId" VerticalAlignment="Top" HorizontalAlignment="Stretch" />
			</Grid>
		</GroupBox>
		<Button Height="25" Margin="0,0,95,0" Name="btnOk" VerticalAlignment="Bottom" HorizontalAlignment="Right" Width="85" Click="btnOk_Click">Ok</Button>
		<Button Height="25" Margin="0,0,0,0" Name="btnCancel" VerticalAlignment="Bottom" HorizontalAlignment="Right" Width="85" Click="btnCancel_Click">Cancel</Button>
	</Grid>
</UserControl>